package com.cooperate.fly.mapper;

import java.util.ArrayList;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.cooperate.fly.bo.Schema;

@Repository
public interface SchemaMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Schema record);

    int insertSelective(Schema record);

    Schema selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Schema record);

    int updateByPrimaryKeyWithBLOBs(Schema record);

    int updateByPrimaryKey(Schema record);
    int updatePathById(@Param("path")String path,@Param("id")int id);

    int dropTable(@Param("tableName") String tableName);

    ArrayList<Schema> selectAll();

    int createTableStore(Map params);

    ArrayList<Schema> selectByParentId(int parentId);

    Schema selectByNameAndParentId(@Param("name")String name, @Param("parentId")int parentId);

}